import { DirectiveBinding } from 'vue';
// let permission=['create','edit']

function checkPermission(el: HTMLElement, binding: DirectiveBinding) {
    console.log('执行了8888','el',el)
    console.log("binding",binding.value)
    // el.style.display='none'

}


export default {
    mounted(el: HTMLElement, binding: DirectiveBinding) {
      checkPermission(el, binding);
    },
    updated(el: HTMLElement, binding: DirectiveBinding) {
      checkPermission(el, binding);
    },
  };
  